import { Controller, Get, Render } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  @Render('web/index')
  web() {
    let index = this.appService.index();
    return index;
  }

  @Get('mobile')
  @Render('mobile/index')
  mobile() {
    let mobile = this.appService.mobile();
    return mobile
  }

  @Get('admin')
  @Render('admin/index')
  admin() {
    return this.appService.admin();
  }

}
